<!doctype html>
<html lang="en">
<head>
    @include('web.layout.head')
    <link rel="stylesheet" href="{{asset('/js/web/frame/jedate/skin/jedate.css')}}">
    <link rel="stylesheet" href="{{asset('/css/web/user/prove_release.css')}}">
    <script src="{{asset('/js/web/frame/jedate/jquery.jedate.js')}}"></script>
    <link rel="stylesheet" href="{{asset('/css/web/user/order_list.css')}}">
    <script src="{{asset('/js/web/user/order_list.js')}}"></script>
    <link rel="stylesheet" href="{{asset('/css/web/inc/header.css')}}">
    <link rel="stylesheet" href="{{asset('/css/web/user/service_orders.css')}}">
</head>
<body>
@include('web.layout.header')
@include('web.layout.user_tab')
<div class="base_member_content">
    <div class="w1200">
        @include('web.layout.buyer_nav')
        <div class="nav_right flr">
            <div class="base_content">
                <div class="line_title">我的订单</div>
                <div class="search f-cb">
                    <form action="{{asset('/member/buyer/order_contract')}}" method="GET">
                        <input name='keyword' type="text" class="text fl" placeholder="合同编号" value='' style="width: 230px;">
                        <select class="select fl" name='status'>
                        	<option value='' >请选择状态</option>
                            <option value='1'  @if($search_params['status']==1) selected="selected"@endif>已完成</option>
                            <option value='0' @if($search_params['status']==0) selected="selected"@endif>待签署</option>
                        </select>
                        <div class="time fl">
                            签署时间：
                            <input value='@isset($search_params['created_at']['start']) {{$search_params['created_at']['start']}}@endisset' name='created_at[start]' type="text" class="timetext workinput wicon" id="inpstart" readonly>
                            <span>至</span>
                            <input value='@isset($search_params['created_at']['end']) {{$search_params['created_at']['end']}}@endisset' name='created_at[end]' type="text" class="timetext workinput wicon" id="inpend" readonly>
                        </div>
                        <input type="submit" class="submit" value="查询">
                    </form>
                      <!-- <a href="/member/seller/contracts" class="contract_mod fr">合同模板</a>   -->
                </div>
                <div class="content">
                    <div class="table list" style="border: 1px solid #e6e6e6;border-bottom:0;margin-top: 20px;">
                        <table>
                            <thead>
                                <tr style="border-bottom: 1px solid #e6e6e6;">
                                    <th width="145">合同编号</th>
                                    <th width="200">合同名称</th>
                                    <th width="200">对方名称</th>
                                    <th width="120">签署时间</th>
                                    <th width="120">合同状态</th>
                                    <th width="200">操作</th>
                                </tr>
                            </thead>
                            <tbody>
                            @if($list)
                            @foreach($list as $h)
                                <tr>
                                    <td style="border-right: 1px solid #e6e6e6;" rowspan="">{{$h['contract_code']}}</td>
                                    <td style="border-right: 1px solid #e6e6e6;" rowspan="">@if($h['contract_type']==1)资质合同@endif</td>
                                    <td style="border-right: 1px solid #e6e6e6;" rowspan="">{{$h['seller_name']}}</td>
                                    <td style="border-right: 1px solid #e6e6e6;">{{$h['created_at']}}</td>
                                    <td style="border-right: 1px solid #e6e6e6;" rowspan="">
                                        @if($h['status']==1)<div>已完成</div>@endif
                                        @if($h['status']==0)<div>待签署</div>@endif
                                    </td>
                                    <td>
                                        <div class="btnbox">
                                            <a href="{{$h['web_url']}}" target="_blank" data-id='' class="btn jm_btn8 sign">查看</a>
                                         <!--    <a href="javascript:;" class="order_cancel" data-id="">下载</a> -->
                                        </div>
                                    </td>
                                </tr>
                             @endforeach
                             @endif
                            </tbody>
                        </table>
                    </div>
                </div>
                <div class="page">
                   
                </div>
            </div>
        </div>
    </div>
</div>

@include('web.layout.footer')
<script type="text/javascript">
   
</script>
</body>
</html>